formulae as types